package com.code.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 用于layui 等前端框架
 * 分页处理
 * @param <T>
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Accessors(chain = true)
@ApiModel(description = "分页入参对象")
public class PageObject implements Serializable {

    @ApiModelProperty(name = "page",value = "当前页")
    private Integer page;

    @ApiModelProperty(name = "limit",value = "显示数量")
    private Integer limit;

    @ApiModelProperty(name = "查询总数",value = "查询总数")
    private Integer count;
}
